{extend name="base" /}
{block name="main"}
<div class="col-md-10">
    <ol class="breadcrumb" style="margin-top: 20px;">
        <li class="breadcrumb-item"><a href="index.html">首页</a></li>
        <li class="breadcrumb-item active">职位管理</li>
      </ol>

    <div class="card">
        <div class="card-body">
            <p class="text-right">
                <a href="{:url('zw/addzw')}">
                  <button type="button" class="btn btn-success">添加职位</button>
                </a>
                </p>
            <table class="table">
                <thead>
                    <tr>
                        <th>职位名</th>
                        <th>职位类型</th>
                        <th>工作地点</th>
                        <th>薪资</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                  {volist name="res" id="vo"}
                    <tr>
                        <td>{$vo.position_name}</td>
                        <td>{$vo.joptype_name}</td>
                        <td>{$vo.position_site}</td>
                        <td>{$vo.position_money}</td>
                        <td>
                            <div class="dropdown">
                              <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                                操作
                              </button>
                              <div class="dropdown-menu">
                                <a class="dropdown-item" href="{:url('zw/zwdetails',['position_id'=>$vo.position_id])}">详情</a>
                                <!-- <a class="dropdown-item" href="{:url('zw/updatezw',['position_id'=>$vo.position_id])}">修改</a> -->
                                <a class="dropdown-item" href="{:url('zw/deletezw',['position_id'=>$vo.position_id])}">删除</a>
                              </div>
                            </div>
                          </td>
                    </tr>
                    {/volist}                               
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}